<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>盛世机电</title>
    <link href="/common/css/common-ui-cool.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="/css/operationStatistics/operationStatistics.css" />
    <script>
        if(localStorage.getItem("token")==null){
            window.history.replaceState(null, "", '/login.html');
            location.reload()
        }
    </script>
</head>

<body>
    <span id="pageId" pageId="4" style="display: none;"></span>
    <div class="page-container">
        <div class="header-container">
            <img class="logo-img" src="/images/logo.png">
            <ul class="top-menu">
                
            </ul>
            <div class="headerTime">
                <span class="dateText"></span>
                <span class="timeText"></span>
            </div>
            <div class="userInfo">
                <i class="aidicon aidicon-account-circle"></i>
                <span class="name"></span>
                <span class="logout">退出</span>
            </div>
        </div>
        <div class="main-container">
            <ul class="side-menu"></ul>
            <div class="table-container">
                <ul class="tab-nav">
                    <li class="active" type="1">报警监测</li>
                    <li type="2">设备保养</li>
                </ul>
                <div class="tab-wrapper">
                    <div class="select-wrap">
                        <!-- <div class="form-group">
                            <button type="button" class="btn btn-primary" id="addBtn">新增</button>
                        </div> -->
                        <div class="form-group">
                            <span class="label-text">报警范围：</span>
                            <div class="layout-date" style="width: 200px;display: inline-block;">
                                <input type="text" id="beginTime" class="form-control inline-block" placeholder="开始时间"
                                    autocomplete="off" />
                                <i class="aidicon aidicon-calendar layout-icon-1"></i>
                            </div>
                            &ensp;-&ensp;
                            <div class="layout-date" style="width: 200px;display: inline-block;">
                                <input type="text" id="endTime" class="form-control inline-block" placeholder="结束时间"
                                    autocomplete="off" />
                                <i class="aidicon aidicon-calendar layout-icon-2"></i>
                            </div>
                        </div>
                        <div class="form-group">
                            <span class="label-text">关键词搜索：</span>
                            <div class="layout-date" style="width: 200px;display: inline-block;">
                                <input type="text" id="optUser" class="form-control inline-block" placeholder="请输入"
                                    autocomplete="off" />
                            </div>
                        </div>
                        <div class="form-group">
                            <button type="button" class="btn btn-default" id="searchBtn1">搜索</button>
                        </div>
                    </div>
                    <div class="table-content">
                        <ul class="table-tab">
                            <li class="active">
                                <span class="tab-text">实时报警</span>
                                <!-- <span class="badge badge-red independent">99</span> -->
                            </li>
                            <li>
                                <span class="tab-text">运行报警</span>
                                <!-- <span class="badge badge-red independent">99+</span> -->
                            </li>
                        </ul>
                        <div class="table-wrap tab-table-wrap">
                            <table id="standard_table1" class="display datatable-xLarge" cellspacing="0" width="100%">
                            </table>
                        </div>
                        <div class="table-wrap tab-table-wrap hidden">
                            <table id="standard_table1_2" class="display datatable-xLarge" cellspacing="0" width="100%">
                            </table>
                        </div>
                    </div>
                </div>
                <div class="tab-wrapper hidden">
                    <div class="select-wrap">
                        <div class="form-group clearfix sys-class" style="display: block;">
                           <!--存放系统分类-->
                        </div>
                        <div class="form-group" id="eq-search" style="display: block;margin-left: 0;">
                            <span class="label-text">关键词搜索：</span>
                            <div class="searchbox m-right" style="width: 200px;display: inline-block;">
                                <span class="aidicon aidicon-magnify"></span>
                                <input id="search_val" placeholder="请输入">
                                <span class="aidicon aidicon-close"></span>
                            </div>
                            <button type="button" class="btn btn-default pull-right" id="export">导出报表</button>
                            <button type="button" class="btn btn-default pull-right" id="flow"
                                style="margin-right: 12px;">详细系统图</button>
                        </div>
                    </div>
                    <div class="table-wrap">
                        <table id="standard_table2" class="display datatable-xLarge" cellspacing="0" width="100%"
                            style="table-layout: fixed;">
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script id="addFormTpl" type="text/html">
        <div class="form-horizon">
            <form class="form-validate-dom">
                <div class="form-group clearfix">
                    <label class="form-label" for="equipment">报警设备：</label>
                    <select class="form-control" name="equipment" id="equipment"></select>
                </div>
            </form> 
        </div>
    </script>
    <script id="editFormTpl" type="text/html">
        <div class="form-horizon">
            <form class="form-validate-dom">
                <div class="form-group clearfix">
                    <label class="form-label" for="nextTime" style="width: 120px;">下次保养时间：</label>
                    <div class="layout-date" style="width: 200px;display: inline-block;">
                        <input type="text" id="nextTime" class="form-control inline-block" placeholder="请选择保养时间"
                            autocomplete="off" style="width: 100%;" />
                        <i class="aidicon aidicon-calendar layout-icon-12"></i>
                    </div>
                </div>
            </form> 
        </div>
    </script>
    <script id="editEquipTpl" type="text/html">
        <div class="form-horizon">
            <form class="form-validate-dom">
                <div class="form-group clearfix">
                    <label class="form-label" for="nextTime" style="width: auto;">监测点位：</label>
                    <input type="text" class="form-control" name="position" readonly="readonly"
                                    placeholder="请输入" autocomplete="off" value="{{data.name}}">
                </div>
                <div class="input-wrap">
                    <label class="form-label" for="nextTime">阈值设置：</label>
                    <div class="form-group">
                        <input type="text" id="minThreshold" class="form-control" name="value1" placeholder="请输入" autocomplete="off" value="{{data.min}}"> 
                    </div> -
                    <div class="form-group">
                        <input type="text" id="maxThreshold" class="form-control" name="value2" placeholder="请输入" autocomplete="off" value="{{data.max}}">
                    </div> {{data.unit}}
                </div>
            </form> 
        </div>
    </script>
    <script id="flowTpl" type="text/html">
        <img src="/images/equipment/main.gif" style="width: 100%;height:100%;">
    </script>
    <script id="dataFormTpl" type="text/html">
        <div class="form-horizon">
            <form class="form-validate-dom">
                <div class="form-group clearfix">
                    <label class="form-label" for="data1">报警名称：</label>
                    <div class="form-group">
                        <input type="text" class="form-control" id="data1" name="date1" readonly="readonly" placeholder="请输入" autocomplete="off" value="{{name}}">
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="form-label" for="data1">处理人：</label>
                    <div class="form-group">
                        <input type="text" class="form-control" id="userName" name="date1" placeholder="请输入" autocomplete="off" value="">
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="form-label" for="data2">处理详情：</label>
                    <div class="form-group">
                        <textarea type="text" class="form-control" id="result" name="data2" placeholder="请输入" autocomplete="off" style="height: 188px;"></textarea>
                    </div> 
                </div>
            </form> 
        </div>
    </script>
    <script src="/common/js/lib/require/require.min.js"></script>
    <script>
        require(["/js/require.config.js"], function () {
            require(["/js/operationStatistics/operationStatistics.js"], function (app) {
                app.init();
            });
        });
    </script>
</body>

</html>